
let age=20+1+1;
print(age);

let num1=5.5;
print(num1);

let num2=0.5;
print(num2);

let ss=age;
print(ss);

let name="raymond";
print(name);

let number="number01";
print(number);

let ydate=date("y-m-d h:i:s");
print(ydate);

let flag=true;
print(flag);

if(num1){
	print("num1:",num1)
}else{
	print("else")
}

if(name=="raymond"){
	print("name:",name);
}

let params={
	"url":"http://appv4.chinalao.com/api/getVersionInfo",
	"method":"post",
	"data":{"appid":"wxda962c7a7a74c113"},
	"header":{"Accept":"application/vnd.emall.v2+json"}
};
let result=request(params);
print(result);
print(result["errmsg"]);
print(result["errcode"]);
print(result["exp_info"]);
print(result["exp_info"]["exp_desc"]);

for(let i=0;i<=10;i++){
	print("my for:i:",i)
}

let arr=["number01","number02","number03","number04","number05","number06"]
for(let i=0;i<=3;i++){
	print("for:i:",i)
	print(arr[i],"    ")
}


let jsonObj={"obj1":"123","obj2":{"name":"raymond"}};
print(jsonObj);
print(jsonObj["obj2"]);
print(jsonObj["obj2"]["name"]);

let filePath=getcwd();
print(filePath);

let file=fopen(filePath+"\index.la","r");
print(file);

fwrite(filePath+"\index.la","123");

rename(filePath+"\index.la",filePath+"\index1.la");

mkdir("test");

remove("test")

let filePath=getcwd();
print(filePath);

let base64=base64_decode("tyui");
print(base64);

let base64s=base64_encode(base64);
print(base64s);

let timess=time();
print(timess);

let str1=string(5);
print(str1);

let str2=string(5.5);
print(str2);

let hello="hello word";
let substrRes=substr(hello,5);
print(substrRes);
let substrRes1=substr(hello,6,10);
print(substrRes1);



let result=request({
	"url":"http://appv4.chinalao.com/api/getVersionInfo",
	"method":"post",
	"data":{"appid":"wxda962c7a7a74c113"}
});
print(result);
























